<<template>
  <el-select v-model="value" :placeholder="'请选择'+select.name" @change=change>
    <el-option
      v-for="item in this.select.data"
      :key="item.value"
      :label="item.label"
      :value="item.value">
    </el-option>
  </el-select>
</template>

<script>
  export default {
    
    name :"Select",
    data() {
      
      return {
       
        // value: this.select.result
      }
      
    },
    computed:{
      value:{
        get(){
           return this.select.result
        },
        set(){

        }
      }
    },
    props:{select:Object},
    methods: {
      change(val) {
        console.log(val);
        this.select.result=val
      }
    },
    
  }
</script>

<style lang="scss" scoped>

</style>